package org.firebug.spring.boot.mail.controller;

import org.firebug.spring.boot.mail.service.MailService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: 张晓东
 * @Date: 2020/7/28 19:11
 */
@RestController
@RequestMapping("/mail")
public class MailController {
    @Resource
    private MailService mailService;

    @RequestMapping("/send")
    public void send() {
        mailService.send("zhangxiaodong@haowu.com", "subject", ""+System.currentTimeMillis());
    }
}
